
import request from "./http";

// 获取首页数据(轮播、专题、热门、今日、昨天)
export function getHome(){
    return request({
        url:"index",
        // url:"app.vmovier.com/apiv3/index/index",
        method:"get",
    })
}

//首页往日数据
export function getPast(id){
    return request({
        // url:"app.vmovier.com/apiv3/index/getIndexPosts",
        url:"index/getIndexPosts",
        method:"get",
        params:{
            lastid:id
        }
    })
}

//首页每日推荐
export function getEveryday(){
    return request({
        // url:"app.vmovier.com/apiv3/DayCover/getDayCover",
        url:"index/getDayCover",
        method:"get",
    })
}


//频道分类

export function getChannel(){
    return request({
        url:"cate/getList",
        method:"get",
    })
}